/*
*/
import QtQuick 2.15
import QtQuick.Controls 2.15


Item {
    property string pos: qsTr("左前")
    property string wt: qsTr("0")
    property string bat: qsTr("4.4")
    property bool unlink: false

    Text {
        id: wheel
        width: 60
        height: 50
        font.pixelSize: 25
        text: pos
        color: "white"
        x: 0
        y: 0
    }

    Button
    {
        id:btnWt
        width: 120
        height: 50
        x: 61
        y: 0

        background: Rectangle{
            border.width: 0
            //color: "#7584C2"
            color: unlink?"#FF614B": "#7584C2"
        }

        text: wt
        font.pixelSize: 25
        palette.buttonText: "white"
        //Text.AlignRight: true     //使能此行，状态页面一直在转圈。
        enabled: false
        onClicked: {}
    }

    Button
    {
        id:btnBat
        width: 70
        height: 50
        x: 187
        y: 0
        background: Rectangle{
            border.width: 0
            color: "#7584C2"
        }

        text: bat
        font.pixelSize: 25
        palette.buttonText: "white"
        enabled: false
        onClicked: {
        }
    }
}
